package com.zhf.rabbitmq.lestener;

import org.springframework.amqp.core.Message;
import org.springframework.amqp.core.MessageListener;

/**
 * @author: 曾鸿发
 * @create: 2022-01-09 12:50
 * @description：
 **/
public class springQueueListener implements MessageListener {
    public void onMessage(Message message) {
        // 打印消息
        System.out.println(new String(message.getBody()));
    }
}
